package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 供应商表
 */
@Data
@TableName("t_supplier")
public class SupplierEntity implements Serializable {
    @TableId(value = "pk_supplierId" ,type = IdType.AUTO)
    private long supplierId;

    @TableField("s_supplierRef")
    private long id;//唯一编号

    @TableField("s_supplierName")
    private String supplierName;//供应商名字

    @TableField("s_email")
    private String email;//供应商邮箱

    @TableField("s_address")
    private String address;//地址

    @TableField("s_name")
    private String principalName;//负责人名字
    @TableField("s_phone")
    private String phone;//供应商电话
    @TableField("s_type")
    private String scope;//资质图片
    @TableField("s_image")
    private String image;//资质图片
    @TableField("s_identy")
    private String identity;//身份证图片
    @TableField("s_status")
    private int status  = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过

    @TableField(exist = false)
    private List<ConfirmOrderEntity> confirmOrderEntityList; //供应商对应的所有中标确认订单

    @TableField(exist = false)
    private List<TenderEntity> tenderEntityList; //供应商对应的所有投标书

    @TableField(exist = false)
    private List<SupplyOrderEntity> supplyOrderEntityList; //供应商对应的所有供货单


    @TableField(exist = false)
    private List<SupplyRefundEntity> supplyRefundEntityList; //供应商对应的所有退货订单
}
